package com.codeman.business.book.domain;

import com.codeman.common.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 小说内容对象 book_content
 * 
 * @author codeman
 * @date 2021-03-24
 */
@Data
public class BookContent
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 目录ID */
    @Excel(name = "目录ID")
    private Long indexId;

    /** 小说章节内容 */
    @Excel(name = "小说章节内容")
    private String content;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("indexId", getIndexId())
            .append("content", getContent())
            .toString();
    }
}
